<?php
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:lj
 * Date:2016-03-09
*/

	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>轩辕商城-后台</title>
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>index.css" />
<script type="text/javascript">
	function powerShow(role_id)
	{
		parent.location.href="./index.php?r=backweb/role/power&role_id="+role_id; 
	}
</script>
</head>
<body>
      <div id="table" style="margin: 10px">
        <div >
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="80">角色ID</th>                
                   <th width="100">角色名字</th>
                   <th width="100">角色类型</th>
                   <th width="200">角色描述</th>             
                   <th>操作</th>
                </tr>
         	<?php foreach($info as $v){ ?>
         	<tr class="tr">
         	   <td class="td_center"><?php echo $v['role_id'];?></td>         
         	   <td class="td_center"><?php echo $v['role_name'];?></td>
         	   <td class="td_center"><?php echo $v['role_type']?></td>
         	   <td class="td_center"><?php echo $v['role_description']?></td>         	
         	   <td class="td_center"><a href="./index.php?r=backweb/role/Update&role_id=<?php echo $v['role_id'];?>">修改</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="./index.php?r=backweb/role/Delete&role_id=<?php echo $v['role_id'];?>">删除</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="powerShow(<?php echo $v['role_id'];?>)">权限</a></td>
         	</tr>				
			<?php }?>	
              </table>
              <div class="page" style="text-align: center;margin-top: 5px;display:none;">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
     </div>
	
</body>
</html>